package main

import "fmt"

/**
切片里操作的数据会直接影响到最初定义的切片的数据
 */
func main()  {
	a := []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 0}
	s := a[1:5]
	s[0] = 222
	fmt.Println("s =", s)
	fmt.Println("a = ", a)

	j := a[4:9]
	j[4] = 333
	fmt.Println("j =", j)
	fmt.Println("a = ", a)
}
